/*
 * @Author: 一路向阳 tt_sunzhenfeng@163.com
 * @Date: 2024-05-14 23:16:20
 * @LastEditors: 一路向阳 tt_sunzhenfeng@163.com
 * @LastEditTime: 2024-05-15 12:17:34
 * @FilePath: \react_nest_demo\nest_service\src\user\dto\create-user.dto.ts
 * @Description: 注册用户字段校验
 */
import { IsString, IsNotEmpty } from 'class-validator';

export class RegisterUserDto {
  @IsNotEmpty({ message: 'username限制不为空!' })
  @IsString({ message: 'username限制为字符串类型!' })
  username: string;
  @IsNotEmpty({ message: 'password限制不为空!' })
  @IsString({ message: 'password限制为字符串类型!' })
  password: string;
}
